package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The persistent class for the gp_eqpmnto_obra database table.
 * 
 */
@Entity
@Table(name = "gp_eqpmnto_obra", schema = "proyecto")
@NamedQuery(name = "GpEqpmntoObra.findAll", query = "SELECT g FROM GpEqpmntoObra g")
public class GpEqpmntoObra implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Basic(optional = false)
	@SequenceGenerator(name = "sq_id_eqpmnto_obra", sequenceName = "proyecto.sq_id_eqpmnto_obra", allocationSize = 1)
	@GeneratedValue(generator = "sq_id_eqpmnto_obra")
	private Integer id;

	@Column(name = "id_eqpmnto")
	private Integer idEqpmnto;

	private String vlor;

	// bi-directional many-to-one association to GpInfrmeDrio
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_infrme_drio")
	private GpInfrmeDrio gpInfrmeDrio;

	public GpEqpmntoObra() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getIdEqpmnto() {
		return this.idEqpmnto;
	}

	public void setIdEqpmnto(Integer idEqpmnto) {
		this.idEqpmnto = idEqpmnto;
	}

	public String getVlor() {
		return this.vlor;
	}

	public void setVlor(String vlor) {
		this.vlor = vlor;
	}

	public GpInfrmeDrio getGpInfrmeDrio() {
		return this.gpInfrmeDrio;
	}

	public void setGpInfrmeDrio(GpInfrmeDrio gpInfrmeDrio) {
		this.gpInfrmeDrio = gpInfrmeDrio;
	}

}